package com.api.shopapi.service;


import com.api.shopapi.entity.VerificationCode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface VerificationCodeService {

    int insert(VerificationCode verificationCode);

    int delete(String verificationCodeCode);

    int update(VerificationCode verificationCode);

    List<VerificationCode> getList();

    VerificationCode getByVerificationCodeCode(String verificationCodeCode);

    VerificationCode getByPhone(String phone);

    VerificationCode getByLoginNamePhone(String loginName, String phone);
    
}
